找传奇、传世资源到传世资源站!

密码管理专家源码

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

密码管理专家源码密码管理专家源码 C#数据库操作-第1张密码管理专家源码 C#数据库操作-第2张using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace LangKeyExpert{ public partial class KeyChange : Form { private DataSet dsNewXML; public KeyChange(string id,DataSet d) { InitializeComponent(); dsNewXML =d; foreach(DataRow dsRow in dsNewXML.Tables["UserKey"].Rows) { if (dsRow["Number"].ToString() == id) { this.label1.Text = id; this.txtTitle.Text = dsRow["Title"].ToString(); this.txtNet.Text = dsRow["NetAdd"].ToString(); this.txtName.Text = dsRow["Name"].ToString(); this.txtPwd.Text = dsRow["Key"].ToString(); return; } } } private void KeyChange_Load(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void button1_Click(object sender, EventArgs e) { if (this.txtTitle.Text == "") { MessageBox.Show("对不起,标题不能为空!", "浪曦友情提示"); return; } if (this.txtNet.Text == "") { MessageBox.Show("对不起,网址不能为空!", "浪曦友情提示"); return; } foreach (DataRow dsRow in dsNewXML.Tables["UserKey"].Rows) { if (dsRow["Number"].ToString() == this.label1.Text) { dsRow["Title"] = this.txtTitle.Text; dsRow["NetAdd"] = this.txtNet.Text; dsRow["Name"] = this.txtName.Text; dsRow["Key"] = this.txtPwd.Text; dsNewXML.WriteXml(@"UserKey.xml"); MessageBox.Show("修改成功!", "浪曦友情提示"); this.Close(); return; } } } }}

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复